//
//  HttpRequest.h
//  Dear
//
//  Created by 陈俊俊 on 15/7/11.
//  Copyright (c) 2015年 陈俊俊. All rights reserved.
// 网络请求类

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "AFNetworkActivityIndicatorManager.h"

@interface HttpRequest : NSObject
//单例
+ (instancetype)sharedInstance;



- (void)POST:(NSString *)urlStr
  parameters:(id)parameters
     success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))succ
     failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))fail;
- (void)uploadPOST:(NSString *)urlStr
  parameters:(id)parameters
     success:(void (^)(AFHTTPRequestOperation *operation, id responseObject))succ
     failure:(void (^)(AFHTTPRequestOperation *operation, NSError *error))fail;


@end
